<html>
    <head>
        <title>Sales</title>
        <link href="style.css" rel="stylesheet" type="text/css" media="screen" />
    </head>
    <body>
        <div class="companyinfo" >
            <a href='index.html' style='font-size:12px;' id='companyname' name='companyname'>Prendas, Perfumes y algo mas...</a><br />
            <span id='info=1'>Rafael Ayala</span><br />
            <span id='info=2'>787.613.5336</span><br />
            <span id='info=3'>rafaelayala_196@hotmail.com</span><br />
        </div>
        <div class='saleinfo'>
        <table class='saleinfo'>
        <tr><td width='60' id='saleid' >#</td><td id='saledate'>Date:  </td></tr>
        <tr><td colspan='2' id='customer'>Customer: </td></tr>
        </table>
        </div>
        
        <div class='iteminfo'>
        <span id='itemspan'></span>
        
        </div>
        <table class='iteminfo'>
        <tr><td style='width:145px;text-align:right;'>SubTotal</td> <td id='taxA' style='text-align:right'>0.00</td></tr>
        <tr><td style='width:145px;text-align:right;'>Taxes</td> <td id='taxB' style='text-align:right'>0.00</td></tr>
        <tr><td style='width:145px;text-align:right;'>Total</td> <td id='total' style='text-align:right'>0.00</td></tr>
        </table>
        <span id='tendered'></span>

        <span id='memo'></span>
            <!-- ====================================== -->
        <!-- End HTML code.  Begin JavaScript code. -->
        <script type="text/javascript" src="gears_init.js">
        </script>
        <script type="text/javascript" src="scripts.js">
        </script>
       
        <script>
          var query = location.search;
           //var id = query.substring(query.indexOf("id=") + 3,query.indexOf("&year")); //query.length);
           var saleYear = query.substring(query.indexOf("year=") + 5, query.length);
		   currentDate = new Date('1/1/'+ saleYear);
           
        </script>  
		<script type="text/javascript" src="sales.js"></script>
		<script>
			query = location.search;
           var id = query.substring(query.indexOf("id=") + 3,query.indexOf("&year")); //query.length);
			  if (id != '' && id != 'reset' && id != 'correct') {
                
                LoadSale(id);
            }
		   
		   
            </script>
        
        <!-- <xml id="xmlTitles" src="./Sales.xml?root='Sales'">
        </xml>-->
    </body>
</html>
